package com.cn.ryc.mapper;

import com.cn.ryc.model.AlarmType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AlarmTypeMapper {

    @Select("SELECT * FROM alarm_types")
    List<AlarmType> findAll();

    @Select("SELECT name FROM alarm_types")
    List<String> findAllNames();
} 